Skip to content

feat(roles): ✨ add delete role functionality with confirmation dialog#725

Merged
aXenDeveloper merged 3 commits into
canaryfrom
feat/role_delete
Jul 25, 2026
Merged

feat(roles): ✨ add delete role functionality with confirmation dialog#725
aXenDeveloper merged 3 commits into
canaryfrom
feat/role_delete

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vitnode-docs Ready Ready Preview, Comment Jul 25, 2026 8:42am

@github-actions github-actions Bot added the 💡 Feature A new feature label Jul 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 784ad813ec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vitnode/src/api/modules/admin/roles/routes/delete.route.ts
Comment thread packages/vitnode/src/api/modules/admin/roles/routes/delete.route.ts
Comment thread packages/vitnode/src/api/modules/admin/roles/routes/delete.route.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d329cd128

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vitnode/src/api/plugin.ts
Comment thread packages/vitnode/src/api/modules/admin/roles/routes/delete.route.ts Outdated
@aXenDeveloper
aXenDeveloper merged commit cbabca3 into canary Jul 25, 2026
4 checks passed
@aXenDeveloper
aXenDeveloper deleted the feat/role_delete branch July 25, 2026 08:43

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 15cca5cec4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +139 to +142
await tx
.update(core_users)
.set({ roleId: targetRoleId })
.where(eq(core_users.roleId, roleId));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Emit user.updated for moved members

When deleting a populated role, this bulk update changes every member's primary-role assignment, but the handler emits only role.deleted. Consequently, listeners relying on the documented user.updated event for role-assignment changes will retain stale permission, cache, or external identity data even though the deletion succeeds; capture the affected users and emit user.updated for each after the transaction commits.

AGENTS.md reference: AGENTS.md:L47-L47

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡 Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant